package demo.chain;


import com.lkcoffee.demo.chain.annocation.Length;
import com.lkcoffee.demo.chain.annocation.Max;
import com.lkcoffee.demo.chain.annocation.Min;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author : feixiang.li
 * @since : 2025-09-17 17:25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

    @Length(min = 2, max = 10, message = "自定义长度不符合要求")
    private String name;

    @Max(value = 18, message = "自定义最大值不符合要求")
    @Min(value = 102, message = "自定义年龄不符合要求")
    private Integer age;
}
